trigger createfulfillmentorder on Opportunity (after insert, after update) 
{
 if(trigger.isUpdate && (!FollowUpOrderHelper.hasAlreadyCreatedFollowUpTasks()))
 {
             Set<ID> oppAASRecordTypeID = AASFieldUpdateHelperClass.getOpportunityAASRecordTypeID();
             for(Opportunity o : trigger.new)
             {
                Opportunity oldOpp = trigger.oldMap.get(o.Id);
                //if(oldOpp.Probability != o.Probability && (o.Probability == 90.00 || o.Probability ==100.00) && oppAASRecordTypeID.contains(o.RecordTypeId) ||  oldOpp.NPO_ID__c != o.NPO_ID__c )
                if(oldOpp.Probability != o.Probability && (o.Probability == 90.00 || o.Probability ==100.00) && oppAASRecordTypeID.contains(o.RecordTypeId))
                {
                   
                    //update by naidu
                    system.debug('Start Creating Fulfillment Orders......');
                    InitiateFulfillmentOrder.CreateFulfillmentOrders(o.Id);
                } 
              }
}
}